package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 疫苗
 * </p>
 *
 * @author wyx
 * @since 2025-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("vaccine")
@ApiModel(value="Vaccine对象", description="疫苗")
public class Vaccine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "疫苗名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "疫苗种类")
    @TableField("type_id")
    private Integer typeId;

    @ApiModelProperty(value = "作用")
    @TableField("`function`")
    private String function;

    @ApiModelProperty(value = "目标人群")
    @TableField("target")
    private String target;

    @ApiModelProperty(value = "不良反应")
    @TableField("adverse_reaction")
    private String adverseReaction;

    @ApiModelProperty(value = "生产厂家")
    @TableField("producer")
    private String producer;

    @ApiModelProperty(value = "生产时间")
    @TableField("produce_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private LocalDateTime produceTime;

    @TableField("status")
    private Integer status;


}
